#ifndef SCREENVIEW_H
#define SCREENVIEW_H
#include <QPainter>
#include <QWidget>
#include <QEvent>
#include <QGraphicsItem>

class ScreenMode{
public:
	enum Enum{
		Demo
	};
};

class ScreenView : public QGraphicsItem
{
	double _x0, _y0, _width, _height;
	QString _imageFile;
	double _ratio; // X/Y
	int _ledSize;

	void updateView();

public:
	ScreenView();
	ScreenView(int x, int y, int width, int height);

	void setGeometry(int width, int height);

	void setMode(ScreenMode::Enum mode);

	QRectF boundingRect() const;
	QPainterPath shape() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};

#endif // SCREENVIEW_H
